@extends('home.layout.base')
@section('title', '首页')
@section('pluginstyle')
<link rel="stylesheet" href="{{ asset('/dist/home/css/qikoo-v-index.css') }}" />
<link rel="stylesheet" href="{{ asset('/dist/home/css/index-1.css') }}" />
<link rel="stylesheet" href="{{ asset('/dist/home/css/index-style.css') }}" />
<script>var _isindex = 1;</script>
@endsection
@section('content')
<script>page_type = "index"</script>
<!--轮播及全部分类-->
@include('home.index.modindex')
<!--/轮播及全部分类-->
<!--商品类别-->
<div class="part-myproducts"> 
    <ul class="part-container">
        @foreach($cateAds as $cads)
        <li> <a href="{{ $cads->ads_url }}"> <img src="{{ asset($cads->ads_img) }}" /> </a> </li>
        @endforeach
    </ul> 
</div>
<!--/商品类别-->
<!--热门活动-->
<div class="part-activitys"> 
    <div class="part-container">
        <span class="part-title">热门活动</span>
    </div> 
    <ul class="part-container">
        @foreach($actAds as $k=>$act)
        <li class="ac{{ $k }}"> <a href="{{ $act->ads_url }}"> <img src="{{ asset($act->ads_img) }}" /> </a> </li>
        @endforeach
    </ul> 
</div>
<!--/热门活动-->
<!--产品列表-->
@foreach($indexCates as $k=>$cate)
<div class="part-smart"> 
    <div class="part-menu"> 
        <span class="part-title">{{ $cate->cate_name }}</span> 
        <a href="{{ url('/list', ['id'=>$cate->id]) }}" class="indexmore">查看更多</a>
    </div> 
    <div class="smart-content"> 
        <span class="smart-left">
            @if(isset($floorAds[$k]))
            <a href="{{ $floorAds[$k]->ads_url }}">
                <img class="js-lazyload" data-size="310_600_" src="{{ asset($floorAds[$k]->ads_img) }}" />
            </a>
            @endif
        </span> 
        <div class="smart-list"> 
            <div class="contentbox"> 
                <ul> 
                    @foreach($indexGoods[$cate->id] as $goods)
                    <li>
                        <a href="{{ url('/item', ['id'=>$goods->id]) }}">
                            <p class="contenttext"> 
                                <span class="ptitle">{{ $goods->goods_name }}</span> <span class="pinfo">{{ $goods->goods_brief }}</span> <em class="pprice">{{ $goods->goods_price }}元</em>
                            </p> 
                            <span class="contentpic">
                                <img class="js-lazyload" data-size="168_168_" src="{{ $goods->goods_thumb }}" />
                            </span>
                        </a>
                    </li>
                    @endforeach
                </ul>
            </div>
        </div>
    </div> 
</div>
@endforeach
<!--/产品列表-->
@endsection
@section('pluginscript')
<script src="{{ asset('/dist/home/js/index.js') }}"></script>
<script>
    $(function() {
        indexPage.init();
    });
</script> 
@endsection